import request from './request'

export function getDetail(id) {
    return request({
        url: '/goods',
        params: {
            id
        }
    })
}


// 周热榜

export function getHotGoods({id, type, limit = 2}) {
    return request({
        url: '/goods/hot',
        params: {
            id,
            type,
            limit
        }
    })
}